package com.bestcem.xm.openplatform.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_openplatform_feishuenterpriseinfo", autoResultMap = true)
public class OpenplatformFeishuenterpriseinfo extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 租户orgCode
     */
    @TableField(value = "org_code")
    private String orgCode;

    /**
     * 租户的org_id
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * 飞书企业识别码
     */
    @TableField(value = "tenant_key")
    private String tenantKey;

    /**
     * 租户自建appid
     */
    @TableField(value = "tenant_appid")
    private String tenantAppid;

    /**
     * 租户自建 appsecret
     */
    @TableField(value = "tenant_appsecret")
    private String tenantAppsecret;

    /**
     * 通讯录可见范围（部门）
     */
    @TableField(value = "allow_department", typeHandler = FastjsonTypeHandler.class)
    private JSON allowDepartment;

    /**
     * 通讯录可见范围（用户）
     */
    @TableField(value = "allow_user")
    private String allowUser;

    /**
     * 授权管理员name
     */
    @TableField(value = "auth_user_name")
    private String authUserName;

    /**
     * 授权管理员open_id
     */
    @TableField(value = "auth_open_id")
    private String authOpenId;
}